from django.contrib import admin
from django.urls import path

from .views import BlogPostListView, BlogPostCreateView, BlogPostUpdateView, BlogPostDetailView, BlogPostDeleteView

app_name = 'blog'
urlpatterns = [
    path('', BlogPostListView.as_view(), name='list'),
    path('add/', BlogPostCreateView.as_view(), name='add'),
    path('detail/<str:slug>/', BlogPostDetailView.as_view(), name='detail'),
    path('edit/<str:slug>/', BlogPostUpdateView.as_view(), name='edit'),
    path('delete/<str:slug>/', BlogPostDeleteView.as_view(), name='delete'),
]